package day20191017;


public class Test02 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("线程ID："+getName());
    }


    public static void main(String[] args) {
        new Test02().start();


    }
}
